package com.ts.api.common.constant.api;

import com.gitee.apanlh.util.base.Eq;

/**
 *  API规则验证枚举
 *
 *  @author Pan
 */
public enum ApiBizTypeEnum {

    /** 撞库 */
    DATA_EXCHANGE(0, "撞库"),
    /** 进件 */
    APPLY(1, "进件"),
    /** 老用户进件 */
    OLD_APPLY(1, "老用户进件"),
    /** 信息流进件 */
    INFO_FLOW_APPLY(1, "信息流进件"),
    /** 拉取进件回调通知 */
    PULL_APPLY_NOTICE(2, "拉取进件回调通知"),
    /** 进件成功通知 */
    PUSH_APPLY_NOTICE(2, "进件成功通知"),
    ;

    private final Integer type;
    private final String name;

    private ApiBizTypeEnum(Integer type, String name) {
        this.type = type;
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public String getName() {
        return name;
    }


    public boolean hasEnum(ApiBizTypeEnum apiBizTypeEnum) {
        return Eq.object(this, apiBizTypeEnum);
    }
}
